﻿using System.ComponentModel.DataAnnotations;

namespace Model.Entity
{
    /// <summary>
    /// 基础实体(LONG)
    /// </summary>
    public class EntityBase_LONG
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Key]
        public long Id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Required(ErrorMessage = "创建时间不能为空")]
        public DateTime CreatedDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 备注(128)
        /// </summary>
        [MaxLength(128,ErrorMessage = "备注长度不能超过128位")]
        public string? Remark { get; set; }
    }
}
